package com.biz.primus.model.oms.vo;

import com.biz.primus.model.oms.enums.PrivilegeBehavior;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.math.BigDecimal;

/**
 * @author yanweijin
 * @date 2017/10/31
 */
@Data
@ApiModel("OMS订单商品项的促销分摊信息")
@FieldDefaults(level = AccessLevel.PRIVATE)
public class PromotionApportionmentVo {


	@ApiModelProperty("促销活动/优惠券的名称")
	String name;

	@ApiModelProperty("促销活动的id/优惠券的券类型id")
	String uid;

	@ApiModelProperty("优惠行为")
	PrivilegeBehavior behavior;

	@ApiModelProperty("返券活动id,来自券平台")
	String eventId;

	@ApiModelProperty("返券规则id,来自券平台")
	String policyId;


	@ApiModelProperty("如果赠送优惠券,则为返券类型,来自券平台")
	String couponType;

	@ApiModelProperty("当促销行为是discount时,这个值表示本项商品分摊的金额")
	Integer amount = 0;


	@ApiModelProperty("门店承担比例,线上订单使用默认值")
	BigDecimal assumeRate = BigDecimal.ZERO;

}
